import 'package:event_bus/event_bus.dart';
import 'package:flutter_ncsjqz_getx/model/user_detail_entity.dart';
/// <summary>
/// author：zwb
/// dateTime： 2021/11/3 18:13
/// filePath： lib/constant/constant.dart
/// desc: 常量
/// <summary>
///
class Constant {
  /// todo：本地图片路径
  static String imagesPath = "assets/image/";

  /// todo：本地json路径
  static String jsonPath = "assets/json/";

  /// todo：网络状态
  static String netStatus = "";

  /// todo：用户信息
  static UserDetailData? userDetailData = UserDetailData();

  /// todo：事件发布-订阅总线
  static EventBus eventBus = EventBus();

  static int? msgCount = 0;
}

/// event_bus 监听model
class EventFn{
  dynamic value;// 发送、接收 的内容
  String name;// name 用于 发送、接收 双向绑定
  EventFn(this.name,this.value);
}